package com.wuwei.elearning.setting.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wuwei.elearning.setting.domain.User;
import com.wuwei.elearning.vo.UserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper extends BaseMapper<User> {

    /**
     * 批量设置grade表的grade_id为空
     * @param selectList
     */
    void batchSetGradeIdNull(List<User> selectList);

    /**
     * 批量设置user表的grade_id
     * @param students user表的主键
     * @param id grade_id
     */
    void batchUpdateGradeId(@Param("students") List<Long> students, @Param("id") Long id);

    UserVo getInfoFromAccount(Long account);
}
